package models

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Name   string `gorm:"type:varchar(30)" json:"name"`
	Passes string `gorm:"type:varchar(30)" json:"passes"`
}
type Ares struct {
	gorm.Model
	Title   string `gorm:"type:varchar(30)" json:"title"`
	Content string `gorm:"type:varchar(50)" json:"content"`
	UserID  uint   `gorm:"type:int" json:"user_id"`
	User    User   `gorm:"foreignKey:UserID"`
}
